package com.coder520.common.exception;


import com.coder520.common.constants.Constants;

/**
 * @author wsq
 *         Created by wsq on 2018-07-21 16:50.
 * @desc 自定义异常
 */
public class MamaBuyException extends RuntimeException{

    private int statusCode = Constants.RESP_STATUS_INTERNAL_ERROR;

    public MamaBuyException(int statusCode,String message) {
        super(message);
        this.statusCode = statusCode;
    }
    public MamaBuyException(String message) {
        super(message);
    }

    public int getStatusCode() {
        return statusCode;
    }
}
